package io.renren.common.enums;

import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @author sean
 * @since 2020-03-18
 *
 * 通用bool值
 */
public enum BoolValueType implements IDictEnum<String> {

    /**
     * 是
     */
    YES("1", "是"),

    /**
     * 否
     */
    NO("0", "否");

    private String code;

    private String description;

    BoolValueType(String code, String description) {
        this.code = code;
        this.description = description;
    }

    @Override
    public String getType() {
        return "COMMON_BOOL";
    }

    @Override
    public String getDescription() {
        return this.description;
    }

    @Override
    @JsonValue
    public String getValue() {
        return this.code;
    }


}
